﻿using System;
using System.ServiceModel;


namespace AccessControl.WorkflowEngine
{
    [ServiceContract(
        Name = "WorkflowEngineServer",
        SessionMode = SessionMode.Required,
        CallbackContract = typeof(IWorkflowEngineCallback))]
    public interface IWorkflowEngineServer
    {

        [OperationContract(IsOneWay = true)]
        void Register(Guid clientID, int[] workflowList);

        [OperationContract(IsOneWay = true)]
        void LetOnePersonPass(int workflowID);

        [OperationContract(IsOneWay = true)]
        void UnRegister(Guid clientID);

        [OperationContract(IsOneWay = false)]
        Boolean CheckConnection();

        [OperationContract(IsOneWay = true)]
        void RestartService();

    }
}
